package com.eastseeway.radioproject.entities;

import java.io.Serializable;

public class BaseMQResponse<T> implements Serializable {
    // 显式声明序列化版本号
    private static final long serialVersionUID = 1L;  // 需根据实际版本管理
    /**
     * type : 1
     * code : 00001
     * data : {"dataBeginDT":"2024-10-28 00:00:00","dataEndDT":"2024-10-28 23:59:59","deviceID":"S003","deviceName":"主机设备"}
     * success : true
     * timestamp : 1729820204559
     */

    private String type;
    private String code;
    private T data;
    private boolean success;
    private long timestamp;

    public String getType() {
        return type;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }

}
